set(PLUGIN_NAME plotequation)

qt_add_plugin(
    ${PLUGIN_NAME}
    SHARED
    ${PLUGIN_HEADERS}
    plot.cpp
    plot.h
    plotdialog.cpp
    plotdialog.h
)

#qt_add_translations(${PLUGIN_NAME} TS_FILE_DIR ../ts TS_FILES ${PLUGIN_TS_FILES})
install(TARGETS ${PLUGIN_NAME} BUNDLE DESTINATION bin LIBRARY DESTINATION bin/resources/plugins)

set_target_properties(
    ${PLUGIN_NAME}
    PROPERTIES
    AUTOMOC ON
    AUTOUIC ON
)

target_link_libraries(
    ${PLUGIN_NAME}
    PRIVATE
    Qt6::Core
    Qt6::Widgets
)

